package com.java.androidmarket.dao;

import com.java.androidmarket.entity.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * description:
 * author:张腾
 * date:2021-04-21
 */
@Mapper
public interface GoodsDao {

    List<Goods> selectForHomePage();

    Goods goodsDetails(int goodsId);

    Goods getGoodsPrice(int goodsId);

    List<Goods> selectByCate(@Param("goodsCategory") String goodsCategory, @Param("goodsPage") int goodsPage);

    List<Goods> search(String search);

    List<Goods> getKillGoods();

    void dealCountChange(Goods goods);

}
